package com.xcfw.dorm.controller;

import com.xcfw.dorm.config.MyProps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @program: Dorm
 * @description: 测试类
 * @author: Bruse Queen
 * @create: 2018-04-07 11:53
 **/
@RestController
public class TestController {
    @Autowired
    private MyProps myProps;

    @RequestMapping("/test")
    public String test() {
        List<String> list = new ArrayList<>();
        list.add("1231");
        list.add("sdf");
        list.forEach(l -> System.out.println(l));
        return myProps.getDruid();
    }
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        Map<String, String> map = new LinkedHashMap<>();
        list.add("sdf");
        list.forEach(l -> System.out.println(l));
    }
}
